#ifndef MYOBJECT_H
#define MYOBJECT_H

#include <QObject>
// #include <QDebug>

class MyObject : public QObject
{
    Q_OBJECT

public:
    MyObject() {}

    Q_INVOKABLE QString message() const
    {
        return m_message;
    }

public slots:
    void sendMessage()
    {
        m_message = "Hello from C++!";
        // qDebug() << m_message;
    }

signals:
    void messageChanged();

private:
    QString m_message;
};

#endif // MYOBJECT_H
